#ifndef _VALIDATOR_UTILS_H_
#define _VALIDATOR_UTILS_H_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <string>


#include "..\Parser\XMLParser.h"
#include "..\Exceptions\InvalidIntegerException.h"

class ValidatorUtils {

	public:
		
		ValidatorUtils();
		
		static bool converToInt(const char* value, int* intValue)throw (InvalidIntegerException);

		static void validateXMLElement(MapList* xmlElement);//Throws invalidElementExeption()
		
		virtual ~ValidatorUtils();

		static int ValidateObjects(list<MapList> xmlObjects);

		static bool isNumber(std::string value);

	private:

		static bool isNumber(const char* value);

};

#endif
